﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Boss/BossMasterPage.master" AutoEventWireup="true" CodeFile="MenuList.aspx.cs" Inherits="Boss_EditMenu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="background-color:#f3f9eb;padding-top:30px;padding-bottom:50px">
    <div style="margin:0 auto;text-align:center;width: 80%">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Dno" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:CommandField SelectText="编辑" ShowSelectButton="True" />
                <asp:BoundField DataField="Dno" HeaderText="Dno" ReadOnly="True" SortExpression="Dno" />
                <asp:BoundField DataField="Dname" HeaderText="Dname" SortExpression="Dname" />
                <asp:BoundField DataField="Dprice" HeaderText="Dprice" SortExpression="Dprice" />
                <asp:BoundField DataField="Ddes" HeaderText="Ddes" SortExpression="Ddes" />
                <asp:BoundField DataField="Dclass" HeaderText="Dclass" SortExpression="Dclass" />
                <asp:BoundField DataField="Dstore" HeaderText="Dstore" SortExpression="Dstore" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=SUBAI-WORKSTATI;Initial Catalog=Restaurant;User ID=BOSS;Password=ss" ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Boss_Menu]"></asp:SqlDataSource>
    </div>
        </div>
</asp:Content>

